<!DOCTYPE html>
<html>
<head>
	<title>test</title>
    <style>
        #iframe1{
            width: 100%;
            height: 600px;
        }
    </style>
</head>
<body>
<script type="text/javascript">
function initUpload(formEle) {  
   // document.domain='test.html';
   document.forms['data_upload'].submit();  
}  

function callback(){
    alert(document.getElementById("iframe1").contentWindow.location.href);
}
</script>

<section>
    <form name="data_upload" action="http://192.168.20.102:8083/merchant/product/productServlet/badInformExcelImport" method="post" target="upload_frame" onsubmit="return initUpload(this)" enctype="multipart/form-data">
        <input name='file' type='file'/>
        <input name='callback' type='text'/>
        <input type='submit'/>
    </form>
    <span onclick='callback()'>点击</span>
    <iframe id='iframe1' src="" id="upload_frame" name="upload_frame"  width="800" height="700">
    </iframe>  
</section>

</body>
</html>